﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using A5Lib;

namespace A5Services
{
    [ServiceContract]
    public interface IUserServices
    {
        [OperationContract]
        bool ValidateUser(string username, string password);

        [OperationContract]
        User GetUser(string username);

        [OperationContract]
        bool WriteUser(User u, bool newUser);

        [OperationContract]
        bool CheckUsernameExists(string username);

        [OperationContract]
        User ChangeUsername(User u, string newUsername);

        [OperationContract]
        List<string> GetAllUsernames();

        [OperationContract]
        bool DeleteUser(string username);

        [OperationContract]
        bool InputValidator(string input, int minChars, int maxChars, bool allowSpaces);

    }


}
